
//轮播js样式
var mySwiper = new Swiper ('.swiper-container', {
    autoplay:true,
    loop: true, // 循环模式选项

    // 如果需要前进后退按钮
    navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev'
    }

});




//jsonjs代码
new Vue({
    el:"#main",
    data:{
        message:"请求数据"

    },
    mounted(){
        axios
            .get("json/news.json")
            .then(response => this.message = response.data.urls)
            .catch(function(error){
            console.log(error);
        })
    }
});
